package com.neborosoft.FlyingDog.utilities;

/**
 * Created with IntelliJ IDEA.
 * User: CM
 * Date: 24.11.12
 * Time: 2:16
 * To change this template use File | Settings | File Templates.
 */
public class MutableInt {
    public int value;

    public MutableInt(int value) {
        this.value = value;
    }

    public MutableInt() {

    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        MutableInt that = (MutableInt) o;

        if (value != that.value) return false;

        return true;
    }

    @Override
    public int hashCode() {
        return value;
    }

    @Override
    public String toString() {
        return Integer.toString(value);
    }
}
